#!/bin/bash
# Copyright (c) 2022-2023 Chengxuya.
# This is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
#          http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.

readonly BUGINFO_IP="//192.168.2.7"
readonly DB_IP="//192.168.2.12"
readonly FILE_PATH="/home/wen/file"
readonly BUGINFO_OPTIONS="username=mansion,password=MXzaq1,iocharset=utf8"
readonly DB_OPTIONS="username=mansion,password=Mxabc!123@,iocharset=utf8"

# mount sda target

echo "fj" | sudo -S mount -t cifs "$BUGINFO_IP/BugInfo(2024.09.05启用)" "$FILE_PATH/buginfo20240905" -o $BUGINFO_OPTIONS
echo "fj" | sudo -S mount -t cifs "$BUGINFO_IP/BugInfo-Ⅰ（20240730启用）" "$FILE_PATH/buginfo20240730" -o $BUGINFO_OPTIONS
echo "fj" | sudo -S mount -t cifs "$DB_IP/DateFTP/192.168.2.12/mx_db" "$FILE_PATH/mxdb" -o $DB_OPTIONS
echo "fj" | sudo -S systemctl daemon-reload
